package com.example.webchar.webchar.service;

import com.example.webchar.webchar.pojo.Users;
import com.example.webchar.webchar.utils.Result;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * @program: webchars
 * @description
 * @author: YouName
 * @create: 2021-08-19 20:25
 **/
@Service
public interface UserService {
    /**
     * 登录
     *
     * @param user
     * @return
     */
    String toLogin(Users user);

    /**
     * 注册
     *
     * @param user
     * @param vCode
     * @return
     */

    Result register(Users user, String vCode);

    /**
     * 发送验证码
     *
     * @param email
     * @return
     */
    Result sendVcode(String email);
}
